package org.dev.vlp.service;

import org.dev.vlp.entity.Community;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dev.vlp.vo.CommunityVo;

import java.util.List;

/**
* @author 86184
* @description 针对表【vlp_community】的数据库操作Service
* @createDate 2023-01-12 13:52:41
*/
public interface CommunityService extends IService<Community> {

    /**
     * 创建社区
     * @param community
     */
    void insert(Community community,int userId);

    /**
     *
     * @param community
     * @param userId
     */
    void modify(Community community,int userId);

    /**
     *
     * @param communityId
     * @param userId
     */
    void delete(Integer communityId,int userId);

    List<Community> selectByName(String name);

    CommunityVo details(int communityId,int userId);

    List<Community> getMyCom(int userId);


}
